package com.ruoyi.basedata.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电用户档案对象 electricity_users_xb
 * 
 * @author gdqt
 * @date 2025-03-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("electricity_users_xb")
@Deprecated
public class ElectricityUsersXb extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /**
     * 自增主键
     */
    @TableId
    private Long id;

    /**
     * 用户归属水司
     */
    @TableField("tenant_id")
    @Excel(name = "客户编号")
    private String tenantId;

    @Excel(name = "客户姓名")
    @TableField(exist = false)
    private String deptName;
    /**
     * 用户编号
     */
    @TableField("user_id")
    @Excel(name = "用户编号")
    private String userId;

    /**
     * 用户名称
     */
    @TableField("user_name")
    @Excel(name = "用户名称")
    private String userName;

    /**
     * 用户手机号码
     */
    @TableField("user_phone")
    @Excel(name = "用户手机号码")
    private String userPhone;

    /**
     * 证件类型
     */
    @TableField("id_type")
    @Excel(name = "证件类型")
    private String idType;

    /**
     * 证件号码
     */
    @TableField("user_code")
    @Excel(name = "证件号码")
    private String userCode;

    /**
     * 用户通讯地址
     */
    @TableField("user_address")
    @Excel(name = "用户通讯地址")
    private String userAddress;

    /**
     * 用户状态（0-销户, 1-使用）
     */
    @TableField("user_mark")
    @Excel(name = "用户状态", readConverterExp = "0=销户,1=使用", type = Excel.Type.EXPORT)
    private Integer userMark;

    /**
     * 立户时间
     */
    @TableField("create_time")
    @Excel(name = "立户时间", type = Excel.Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;

    /**
     * 余额
     */
    @TableField("yckye")
    @Excel(name = "余额", type = Excel.Type.IMPORT)
    private BigDecimal yckye;

    /**
     * 删除标志(0：否，1：是)
     */
    @TableField("del_flag")
    @TableLogic
    private Integer delFlag;

    @TableField(exist = false)
    private String belongDepartment;

    @TableField("remark")
//    @Excel(name = "备注", type = Excel.Type.EXPORT)
    private String remark;
    /**
     * 未绑定小表用户
     */
    @TableField(exist = false)
    private Boolean unbound;

}
